{% extends 'base.html' %}
{% import 'bootstrap/wtf.html' as wtf %}
{% import 'includes/_macros.html' as macros %}

{% block content %}

{% include 'includes/_posts.html' %}

<h4 id="comments">评论</h4>
{% if current_user.can(Permission.COMMENT) %}
<div class="comment-form">
	{{ wtf.quick_form(form) }}
</div>
{% endif %}
{% include 'includes/_comments.html' %}
{% if pagination %}
<div class="pagination">
	{{ macros.pagination_widget(pagination,'.post',fragment='#comments',id=posts[0].id )}}
</div>
{% endif %}
{% endblock %}